package com.xiangwei.service;

import java.util.List;
import java.util.Map;







import com.xiangwei.dto.DropDownDto;
//import com.xiangwei.dto.DropDownDto;
import com.xiangwei.entity.Vendor;
import com.xiangwei.view.VendorView;

public interface IVendorService {
	
    //查询厂商列表
	public List<Vendor> findVendorList(Map<Object,Object> map);
	//根据ID查询厂商
	public Vendor selectByPrimaryKey(Integer vendorId);
	 
    public void insertVendor(Vendor vendor,String[] cName,String[] cValue);
    
    public void deleteByPrimaryKey(Integer vendorId);
    
    public void updateByPrimaryKey(Vendor vendor,String[] cName,String[] cValue,String[] eId);
    //查询厂商下拉框
    List<DropDownDto> selectVendorNameList();
    //查询是否有重复的厂商名称
    public int findVendorNameCount(Map<Object,Object> map);
    
	public List<Vendor> findAllVendors();	
	//根据ID查询厂商
	public VendorView selectVendorViewById(Integer vendorId);
	
	public int delExtraColumnById(String id);
	
	public Vendor getMaxIdVendor();
	
	public int updateVendor(Vendor vendor);
	
	public Vendor findByVendorName(String vendorName);
}
